#include <cstdlib>
#include <ctime>
#include "Labyrinthe.h"

Labyrinthe::Labyrinthe(int matrix_height, int matrix_width) {
	this->matrix_height=matrix_height;
	this->matrix_width=matrix_width;
	this->gamePanel = new char*[matrix_height];
	for(int i = 0; i < matrix_height; i++) {
		this->gamePanel[i] = new char[matrix_width];
	}
	srand(time(NULL));
}

void Labyrinthe::setMatrixHeight(int matrix_height){
	this->matrix_height=matrix_height;
}

void Labyrinthe::setMatrixWidth(int matrix_width){
	this->matrix_width=matrix_width;
}

void Labyrinthe::setElement(int y, int x, char element){
	this->gamePanel[y][x]=element;
}

void Labyrinthe::registerGhostBirthPLace(int y, int x){
	this->bPLaceGhostY = y;
	this->bPLaceGhostX = x;
}

